<template>
  <button @click="handleClick" class="btn btn-outline-primary">
    <icon-upload />
    上传文件
  </button>
  <input
    @change="$emit('files-choose', $event.target.files)"
    type="file"
    multiple
    style="display: none"
    ref="file" />
</template>

<script setup>
import { ref } from 'vue'
const file = ref(null)
const handleClick = () => {
  file.value.click()
}
</script>

<style></style>
